﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000BF RID: 191
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AreaStepInfo : IMessage<AreaStepInfo>, IMessage, IEquatable<AreaStepInfo>, IDeepCloneable<AreaStepInfo>, IBufferMessage
	{
		// Token: 0x1700026C RID: 620
		// (get) Token: 0x0600088F RID: 2191 RVA: 0x000188C9 File Offset: 0x00016AC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AreaStepInfo> Parser
		{
			get
			{
				return AreaStepInfo._parser;
			}
		}

		// Token: 0x1700026D RID: 621
		// (get) Token: 0x06000890 RID: 2192 RVA: 0x000188D0 File Offset: 0x00016AD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AreaStepInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700026E RID: 622
		// (get) Token: 0x06000891 RID: 2193 RVA: 0x000188E2 File Offset: 0x00016AE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AreaStepInfo.Descriptor;
			}
		}

		// Token: 0x06000892 RID: 2194 RVA: 0x000188E9 File Offset: 0x00016AE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaStepInfo()
		{
		}

		// Token: 0x06000893 RID: 2195 RVA: 0x000188FC File Offset: 0x00016AFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaStepInfo(AreaStepInfo other) : this()
		{
			this.areaStepList_ = other.areaStepList_.Clone();
			this.areaGlobalId_ = other.areaGlobalId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000894 RID: 2196 RVA: 0x00018932 File Offset: 0x00016B32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaStepInfo Clone()
		{
			return new AreaStepInfo(this);
		}

		// Token: 0x1700026F RID: 623
		// (get) Token: 0x06000895 RID: 2197 RVA: 0x0001893A File Offset: 0x00016B3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BuildAreaStep> AreaStepList
		{
			get
			{
				return this.areaStepList_;
			}
		}

		// Token: 0x17000270 RID: 624
		// (get) Token: 0x06000896 RID: 2198 RVA: 0x00018942 File Offset: 0x00016B42
		// (set) Token: 0x06000897 RID: 2199 RVA: 0x0001894A File Offset: 0x00016B4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaGlobalId
		{
			get
			{
				return this.areaGlobalId_;
			}
			set
			{
				this.areaGlobalId_ = value;
			}
		}

		// Token: 0x06000898 RID: 2200 RVA: 0x00018953 File Offset: 0x00016B53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AreaStepInfo);
		}

		// Token: 0x06000899 RID: 2201 RVA: 0x00018964 File Offset: 0x00016B64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AreaStepInfo other)
		{
			return other != null && (other == this || (this.areaStepList_.Equals(other.areaStepList_) && this.AreaGlobalId == other.AreaGlobalId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600089A RID: 2202 RVA: 0x000189B4 File Offset: 0x00016BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.areaStepList_.GetHashCode();
			if (this.AreaGlobalId != 0U)
			{
				num ^= this.AreaGlobalId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600089B RID: 2203 RVA: 0x00018A01 File Offset: 0x00016C01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600089C RID: 2204 RVA: 0x00018A09 File Offset: 0x00016C09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600089D RID: 2205 RVA: 0x00018A14 File Offset: 0x00016C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.areaStepList_.WriteTo(ref output, AreaStepInfo._repeated_areaStepList_codec);
			if (this.AreaGlobalId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.AreaGlobalId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600089E RID: 2206 RVA: 0x00018A64 File Offset: 0x00016C64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.areaStepList_.CalculateSize(AreaStepInfo._repeated_areaStepList_codec);
			if (this.AreaGlobalId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaGlobalId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600089F RID: 2207 RVA: 0x00018AB8 File Offset: 0x00016CB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AreaStepInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.areaStepList_.Add(other.areaStepList_);
			if (other.AreaGlobalId != 0U)
			{
				this.AreaGlobalId = other.AreaGlobalId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060008A0 RID: 2208 RVA: 0x00018B05 File Offset: 0x00016D05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060008A1 RID: 2209 RVA: 0x00018B10 File Offset: 0x00016D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AreaGlobalId = input.ReadUInt32();
					}
				}
				else
				{
					this.areaStepList_.AddEntriesFrom(ref input, AreaStepInfo._repeated_areaStepList_codec);
				}
			}
		}

		// Token: 0x0400032D RID: 813
		private static readonly MessageParser<AreaStepInfo> _parser = new MessageParser<AreaStepInfo>(() => new AreaStepInfo());

		// Token: 0x0400032E RID: 814
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400032F RID: 815
		public const int AreaStepListFieldNumber = 7;

		// Token: 0x04000330 RID: 816
		private static readonly FieldCodec<BuildAreaStep> _repeated_areaStepList_codec = FieldCodec.ForMessage<BuildAreaStep>(58U, BuildAreaStep.Parser);

		// Token: 0x04000331 RID: 817
		private readonly RepeatedField<BuildAreaStep> areaStepList_ = new RepeatedField<BuildAreaStep>();

		// Token: 0x04000332 RID: 818
		public const int AreaGlobalIdFieldNumber = 11;

		// Token: 0x04000333 RID: 819
		private uint areaGlobalId_;
	}
}
